home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
FishMarket 1.0
/
FishMarket v1.0.iso
/
fishies
/
076-100
/
disk_076
/
include
/
devices
/
gameport.g
< prev
next >
Wrap
Text File
|
1992-05-06
|
626b
|
30 lines
/* requires previous inclusion of include:exec/io.g */
uint
GPD_READEVENT = CMD_NONSTD+0,
GPD_ASKCTYPE = CMD_NONSTD+1,
GPD_SETCTYPE = CMD_NONSTD+2,
GPD_ASKTRIGGER = CMD_NONSTD+3,
GPD_SETTRIGGER = CMD_NONSTD+4,
GPTB_DOWNKEYS = 0,
GPTF_DOWNKEYS = 1 << GPTB_DOWNKEYS,
GPTB_UPKEYS = 1,
GPTF_UPKEYS = 1 << GPTB_UPKEYS;
type
GamePortTrigger_t = struct {
uint gpt_Keys;
uint gpt_Timeout;
uint gpt_XDelta;
uint gpt_YDelta;
};
int
GPCT_ALLOCATED = -1,
GPCT_NOCONTROLLER = 0,
GPCT_MOUSE = 1,
GPCT_RELJOYSTICK = 2,
GPCT_ABSJOYSTICK = 3,
GPDERR_SETCTYPE = 1;